package com.uduemc.biso.node.module.service;

import java.util.List;

import org.springframework.data.domain.Pageable;

import com.uduemc.biso.node.core.entities.HCompanyInfo;

public interface HCompanyInfoService {

	public HCompanyInfo insertAndUpdateCreateAt(HCompanyInfo hCompanyInfo);

	public HCompanyInfo insert(HCompanyInfo hCompanyInfo);

	public HCompanyInfo insertSelective(HCompanyInfo hCompanyInfo);

	public HCompanyInfo updateById(HCompanyInfo hCompanyInfo);

	public HCompanyInfo updateAllById(HCompanyInfo hCompanyInfo);

	public HCompanyInfo findOne(Long id);

	public List<HCompanyInfo> findAll(Pageable pageable);

	public void deleteById(Long id);

	public int deleteByHostId(long hostId);

	// 通过 hostId 获取其对应的数据 如果有多条进行删除其他保留一条的动作
	public HCompanyInfo findInfoByHostId(Long hostId);

	// 初始化
	public void init(long hostId);
}
